home *** CD-ROM | disk | FTP | other *** search
/ Small Time Crooks Press Kit / Small Time Crooks Press Kit.iso / pc / Small Time Crooks.dxr / Scripts_1.ls < prev    next >
Encoding:
Text File  |  2000-04-30  |  1.1 KB  |  35 lines

  1. global gMasterTexts, gDownloadTexts, gCurrentText, gMasterPhotos, gDownloadPhotos, gCurrentPhoto, gCurrentVideo, gInitialMenuHelpOn
  2.  
  3. on startMovie
  4.   set gDownloadTexts to []
  5.   set gCurrentText to EMPTY
  6.   set gDownloadPhotos to []
  7.   set gCurrentPhoto to EMPTY
  8.   set gCurrentVideo to EMPTY
  9.   set previousItemDelimiter to the itemDelimiter
  10.   set the itemDelimiter to "@"
  11.   set textsIndex to field "TextsIndex"
  12.   set gMasterTexts to []
  13.   repeat with whichLine = 1 to the number of lines in textsIndex
  14.     if line whichLine of textsIndex = EMPTY then
  15.       next repeat
  16.     end if
  17.     append(gMasterTexts, item 1 of line whichLine of textsIndex)
  18.   end repeat
  19.   set photosIndex to field "PhotosIndex"
  20.   set gMasterPhotos to []
  21.   repeat with whichLine = 1 to the number of lines in photosIndex
  22.     if line whichLine of photosIndex = EMPTY then
  23.       next repeat
  24.     end if
  25.     append(gMasterPhotos, item 1 of line whichLine of photosIndex)
  26.   end repeat
  27.   set the itemDelimiter to previousItemDelimiter
  28.   SetScrollTopsToTop()
  29.   set gInitialMenuHelpOn to 1
  30. end
  31.  
  32. on idle
  33.   sendAllSprites(#DoIdleScript)
  34. end
  35.